package com.ouwen.smartpay.openapi.order;

import com.fm.core.common.facade.OrderBase;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author <a href="http://youngitman.tech">青年IT男</a>
 * @version v1.0.0
 * @className NotifyOrder
 * @description
 * @JunitTest: {@link  }
 * @date 2020-04-27 09:26
 **/
@Setter
@Getter
public class OpenApiNotifyOrder extends OrderBase {

    @NotBlank(message = "调用请求流水号不能为空,每次调用接口不同")
    private String requestNo;

    @NotNull(message = "订单明细不能为空")
    private List<NotifyOrderItem> notifyOrderItems;

    /*** 通知的订单笔数 */
    private Integer total = 1;

}
